#include<bits/stdc++.h>
using namespace std;

int n, res = 0;
//1  1[1]
//2  2 * 2[1]
//3  3 * 3 + 1[1 3]
//4  4 * 4 + 4 [1 3] 
//5  5 * 5 + 3 * 3  + 1[1 3 5]
//6  6 * 6 + 4 * 4 + 4 [1 3 5]
int main()
{
	cin >> n;
	if(n % 2 == 0)
	{
		for(int i=n; i>=4; i-=2)
		{
			res += i*i;
		}
		res += 4;
	}
	else
	{
		for(int i=n; i>=1; i-=2)
		{
			res += i*i; 
		}
	}
	cout << res << endl;
	return 0;
} 